import NProgress from 'nprogress' //progress bar
import 'nprogress/nprogress.css'
import router from './router'
import getPageTitle from '@/utils/get-page-title'
import {getToken} from '@/utils/auth'


NProgress.configure({ showSpinner: false })
router.beforeEach(async (to,from,next)=>{
    NProgress.start()
    document.title = '湘厨同城';
    next();
    NProgress.done();

})


router.afterEach(()=>{
    NProgress.done()
})
